package com.bjsxt.livegoods.comment.service.config;

import com.bjsxt.livegoods.dao.feedback.FeedbackDao;
import com.bjsxt.livegoods.dao.feedback.FeedbackDaoImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.core.MongoTemplate;

@Configuration
public class CommentConfiguration {
    @Bean
    public FeedbackDao feedbackDao(MongoTemplate mongoTemplate){
        FeedbackDaoImpl dao = new FeedbackDaoImpl();
        dao.setMongoTemplate(mongoTemplate);
        return dao;
    }
}
